const koa = require("koa");
const app = new koa();

// 一次请求一个ctx!!!
app.use(async (ctx,next)=>{
    ctx.damuFn();
    console.log(ctx.zdy);
    ctx.body = "1";
    await next()
})

app.use(async (ctx,next)=>{
    ctx.body += "2";
    await next()
})

app.use(async (ctx,next)=>{
    ctx.body += "3";
    await next()
})

app.listen(8888,"127.0.0.1",()=>{
    console.log("server is running on http://127.0.0.1:8888")
})